local wdtx_recast = fk.CreateSkill {
  name = "wdtx_recast",
}

wdtx_recast:addEffect("active", {
  name = "wdtx_recast",
  prompt = "#wdtx_recast",
  target_num = 0,
  on_use = function(_, room, effect)
    room:recastCard(effect.cards, effect.from)
    if room.logic.class.name == "wdtx_logic" and #effect.cards > 0 and Fk:getCardById(effect.cards[1]):getMark("@rechain_num") > 0 then
      room.logic.Wdtx:drawCards(1)
    end
  end
})


return wdtx_recast